<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type="text/javascript" src="/pintuan/Public/Member/js/feed.js"></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<link href='/pintuan/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/operamasks-ui.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/plugin/datepicker/datepicker.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/daterangepicker.js'></script>
<link href='/pintuan/Public/Member/js/plugin/datepicker/datepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/category.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/coupon.js'></script>

<script type="text/javascript" src="/pintuan/Public/Member/api/js/add_product.js"></script>
<script language="javascript">$(document).ready(add_product_obj.add_product_add);</script> 




</head>

<body>
    <div id="iframe_page">
        <div class="iframe_content">
            <div class="r_nav">
                <ul>
                  <li class="<?php if((ACTION_NAME) == "config"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/merchant');?>">商家列表</a></li>
	              <li class="<?php if((ACTION_NAME) == "classify"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/category');?>">商家分类</a></li>
	              <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/review');?>">商家点评</a></li>
	              <li class="<?php if((ACTION_NAME) == "news_add"): ?>cur<?php endif; ?>"><a href="<?php echo U('Merchant/apply');?>">入驻申请</a></li>
               </ul>
            </div>
            

<div id="news" class="r_con_wrap">
	<form id="product_form" class="r_con_form">
	   <div class="rows">
	        <label>商品名称</label>
	        <span class="input"><input type="text" name="name" value="" class="form_input" size="35" maxlength="100" notnull /> <font class="fc_red">*</font></span>
	        <div class="clear"></div>
	    </div> 
	     
	    <div class="rows">
            <label>市场价</label>
            <span class="input"><input type="text" name="oriprice" value="" class="form_input" size="35" maxlength="100" notnull /> <font class="fc_red">*</font></span>
            <div class="clear"></div>
        </div>
        <div class="rows">
	        <label>最低价</label>
	        <span class="input"><input type="text" name="lowestprice" value="" class="form_input" size="35" maxlength="100" notnull /> <font class="fc_red">*</font></span>
	        <div class="clear"></div>
	    </div>
	    <div class="rows">
					<label>封面图</label>
					<span class="input">
						<span class="upload_file">
							<div>
								<div class="up_input">
								    <input name="ImgUpload" id="ImgUpload" type="file" width="120" height="30" style="display: none;">
								</div>
								<input type="hidden" name="ImgPath" value="<?php echo ($value["img"]); ?>">
								<div class="tips">图片宽度建议：280x200px</div><br/>
								<div class="clear"></div>
							</div>
							<div class="img" id="ImgDetail">
								<?php if($linkpath['imgpath'] != null): ?><a href="<?php echo ($linkpath["imgpath"]); ?>" target="_blank">
					                    <img src="<?php echo ($linkpath["imgpath"]); ?>">
					                </a><?php endif; ?> 
							</div>
						</span>
					</span>
					<div class="clear"></div>
				</div>
	    <div class="rows">
            <label>轮播展示图</label>
            <span class="input">
                <span class="upload_file">
                    <div>
                        <div class="up_input"><input name="PicUpload" id="PicUpload" type="file" /></div>
                        <div class="tips">共可上传<span id="pic_count">5</span>张图片，图片大小建议：640*320像素</div>
                        <div class="clear"></div>
                    </div>
                </span>
                <div class="img" id="PicDetail">   
                    <?php if(is_array($data["imgpath"])): foreach($data["imgpath"] as $key=>$vv): ?><div>
                        <a href="<?php echo ($vv); ?>" target="_blank">
                            <img src="<?php echo ($vv); ?>"></a>
                            <span>删除</span>
                            <input type="hidden" name="PicPath[]" value="<?php echo ($vv); ?>">
                        </div><?php endforeach; endif; ?> 
                </div>
            </span>
            <div class="clear"></div>
        </div>
		 <div class="rows">
	        <label>商品详情</label>
	        <span class="input"><textarea name="description" notnull="" maxlength="200"></textarea> <font class="fc_red">* </font></span>
	        <div class="clear"></div>
	    </div> 
       <div class="rows">
	        <label>右侧备注</label>
	        <span class="input"><input type="text" name="remark" value="" class="form_input" size="35" maxlength="100" notnull /> <span class="tips">字数不得多于10个</span><font class="fc_red">*</font></span>
	        <div class="clear"></div>
	    </div>
	    <div class="rows">
	        <label>规格</label>
	        <span class="input"><input type="text" name="spec" value="" class="form_input" size="35" maxlength="100" notnull /><span class="tips">例：口味、类型等</span> <font class="fc_red">*</font></span>
	        <div class="clear"></div>
	    </div>
        <div class="rows">
	        <label></label>
	        <span class="input"><input type="button" class="btn_green" name="submit_button" value="提交保存" /><a href="<?php echo U('merchant');?>" class="btn_gray">返回</a></span>
	        <div class="clear"></div>
	    </div>
	    <input type="hidden" name="id" value="<?php echo ($data["id"]); ?>">
	</form>
</div>  

         </div>
	</div>
</body>
</html>